/**
 * Doctors order
 */
package edu.gatech.oad.doctorsorder;

import java.io.Serializable;

/**
 * A doctor's Order.
 * 
 * @author chen
 * @version 1.0
 */
public class DoctorsOrder implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * order's notes
	 */
	private String notes;// doctor's notes

	/**
	 * Constructs a doctor's Order with specified note.
	 * 
	 * @param notes
	 *            doctor's note
	 */
	public DoctorsOrder(String notes) {
		this.notes = notes;
	}

	/**
	 * Constructs a doctor's order without notes.
	 */
	public DoctorsOrder() {
		this.notes = "";
	}

	/**
	 * Gets doctor's note
	 * 
	 * @return doctor's note
	 */
	public String getNotes() {
		return notes;
	}

	/**
	 * Sets doctor's note
	 * 
	 * @param notes
	 */
	public void setNotes(String notes) {
		this.notes = notes;
	}

	/**
	 * converts order to string
	 * 
	 * @return the specified string
	 */
	@Override
	public String toString() {
		return "note: " + notes;
	}

}
